//
//  TopStrategyModel.m
//  HappilyLoan
//
//  Created by 纵情向前 on 2017/4/24.
//  Copyright © 2017年 zongqingxiangqian. All rights reserved.
//

#import "TopStrategyModel.h"
#import "ZFHttpTool.h"
#import "ZFHeader.h"
@implementation TopStrategyModel

- (void)getStrategyWithPage:(NSInteger)page{
    NSString *str = @"http://192.168.1.24";
    NSDictionary *params = @{@"activity_type":@"1",@"currentPage":[NSString stringWithFormat:@"%ld",(long)page]};
    
    [ZFHttpTool postWithURL:[NSString stringWithFormat:@"%@/system/findActivityInfoList",str] params:params bodyStr:@"" success:^(id responseObject) {
        
        [[NSNotificationCenter defaultCenter] postNotificationName:@"getStrategyModel" object:responseObject];

    } failure:^(NSError *error) {

        [[NSNotificationCenter defaultCenter] postNotificationName:@"getStrategyModel" object:error];
        NSLog(@"shishiashaisais");
    }];
}
@end
